﻿using System;
using System.Collections.Generic;
using System.Text;
using SQLite;

namespace FileSystem.Models {
    /// <summary>
    /// 磁盘块
    /// </summary>
    public class DiskBlock {
        /// <summary>
        /// 物理块号(限制为64块)
        /// </summary>
        [PrimaryKey]
        [AutoIncrement]
        public int PhysicalBlockNumber { get; set; }

        /// <summary>
        /// 物理块类型
        /// </summary>
        public int PhysicalBlockType { get; set; }

        /// <summary>
        /// 下一块
        /// </summary>
        public int NextOne { get; set; }

    }

    public static class DiskBlockConst {
        public enum Type {
            Full,
            Null
        }

        public enum Property {
            PhysicalBlockNumber,
            PhysicalBlockType,
            NextOne
        }

        public static int First = 1;

        public static int Last = 64;
    }
}